package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;

public class Application extends Controller {

	@Before
    static void setConnectedUser() {
        if(Security.isConnected()) {
            User user = Security.getConnected();
            if (user.arcadiano!=null)
            	renderArgs.put("user", user.arcadiano.nombre);
            else
            	renderArgs.put("user", user.username);
        }
    }
	
    public static void index() {
        Admin.index();
    }

}